package com.atguigu.springCloud.config;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

@Configuration
public class ApplicationConfig {

    @Bean //请求8001端口发送请求
    public RestTemplate getTemplate(){
        return new RestTemplate();
    }
}
